package day07;
import java.util.Random;
import java.util.Scanner;

public class pricticeDemo {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
System.out.println("请输入票价");
double price= scan.nextDouble();
if(price<=0){
    System.out.println("输入错误");}
System.out.println("请输入月份");
int mun= scan.nextInt();
if(mun<1 || mun>12){
    System.out.println("输入错误");}
System.out.println("请输入类型");
int type= scan.nextInt();
if(type>3||type<1){
    System.out.println("输入错误");
}
    }

    public static double sa(double price,int num,int type) {
        double dell=0.0;
        if(num<5 ||num>10){
            switch (type){
                case 1:
                    dell=price*0.9;
                    break;
                case 2:
                    dell=price*0.85;
                    break;
                case 3:
                    dell=price*0.8;
                    break;

            }

        }else{
            switch(type){

            }
        }






        return dell;
    }
}